package com.ruicar.afs.cloud.afscase.channel.common;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: sang jian
 * @date: 2020/5/27 19:03
 * @description:
 */
@Data
public class Constants {

    //黑名单表中车商为03
    public static final String CARDEALER = "03";
    //黑名单表中统一社会信用码为02
    public static final String SOCUNICRTCODE = "02";
    //黑名单表中加入黑名单的为1
    public static final String WEATHERBLACKLIST = "1";
    //合作商车商关联表中 普通车商为01
    public static final String COMMONCARDEALER = "01";
    //合作商车商关联表中 直营车商为02
    public static final String DIRECTCARDEALER = "02";

    // 00 已启动\  01 审核中\  02 草稿\03退回\04 拒绝\ 05停用
    public static final String ENABLED = "00";
    public static final String REVIEW = "01";
    public static final String DRAFT = "02";
    public static final String DRAWBACK = "03";
    public static final String REFUSE = "04";
    public static final String DISABLE = "05";

    //渠道表里 合作商类型 00:sp；01:直营;02总对总
    public static final String SP = "00";
    public static final String DIRECT = "01";
    public static final String TOTAl = "02";


    //渠道表里 渠道类型 01:合作商 02:直营车商
    public static final String CHANNEL = "01";

    /**
     * 当前登陆者是否拥有新车或者二手车权限：是
     */
    public static final String IS_HAVE_CAR_ROLE_YES = "1";

    /**
     * 业务类型：新车
     */
    public static final String BUSINESS_TYPE_NEW_CAR = "01";
    /**
     * 业务类型：二手车
     */
    public static final String BUSINESS_TYPE_OLD_CAR = "02";

    /**
     * 人员关联车商： 否
     */
    public static final String PERSON_SWITCH_OFF = "0";
    /**
     * 人员关联车商：是
     */
    public static final String PERSON_SWITCH_ON = "1";

    /**
     * 授权区域是否是父级：是
     */
    public static final String IS_PARENT = "1";

    /**
     * 父级id：0
     */
    public static final String PARENT_ID_ZERO = "0";

    /*
    * 额度占用
    */
    public static final String QUOTA_OCCUPATION = "occupation";

    /**
     * 长城贷后系统经销商启用状态
     */
    public static final String CC_CHANNEL_STATUS_ZERO = "0";
    /**
     * 长城贷后系统经销商拒绝状态
     */
    public static final String CC_CHANNEL_STATUS_ONE = "1";

    /**
     * 渠道状态
     * 00 启用
     * 01 审核中
     * 02 草稿
     * 03 退回
     * 04 拒绝
     * 05 停用
     * 06 已退网
     * 07 退网中
     */
    public static final String VALUE_CHANNEL_STATUS_ZERO = "00";
    public static final String VALUE_CHANNEL_STATUS_ONE = "01";
    public static final String VALUE_CHANNEL_STATUS_TWO = "02";
    public static final String VALUE_CHANNEL_STATUS_THREE = "03";
    public static final String VALUE_CHANNEL_STATUS_FOUR = "04";
    public static final String VALUE_CHANNEL_STATUS_FIVE = "05";
    public static final String VALUE_CHANNEL_STATUS_SIX = "06";
    public static final String VALUE_CHANNEL_STATUS_SEVEN = "07";
    /**
     * 收款账号状态：已启动
     */
    public static final String ACCOUNT_STATUS_ZERO = "00";
    /**
     * 收款类型：车款
     */
    public static final String COLLECTION_TYPE_ONE = "1";


    //经销商组映射
    public static final Map<String, String> CODE = new HashMap<String, String>() {{
        put("31","1016001004");	//上海市
        put("44","1016002003");	//广东省
        put("45","1016002007");	//广西壮族自治区
        put("42","1016006003");	//湖北省
        put("21","1016004007");	//辽宁省
        put("37","1016001006");	//山东省
        put("63","1016003003");	//青海省
        put("34","1016005002");	//安徽省
        put("32","1016001004");	//江苏省
        put("82","1016004002");	//澳门特别行政区
        put("15","1016004011");	//内蒙古自治区
        put("23","1016004010");	//黑龙江省
        put("61","1016003004");	//陕西省
        put("54","1016003007");	//西藏自治区
        put("46","1016002004");	//海南省
        put("62","1016003001");	//甘肃省
        put("50","1016003011");	//重庆市
        put("11","1016004002");	//北京市
        put("35","1016005003");	//福建省
        put("65","1016003005");	//新疆维吾尔自治区
        put("81","1016004002");	//香港特别行政区
        put("71","1016004002");	//台湾省
        put("33","1016005001");	//浙江省
        put("53","1016002009");	//云南省
        put("52","1016002008");	//贵州省
        put("41","1016006001");	//河南省
        put("51","1016003010");	//四川省
        put("14","1016006004");	//山西省
        put("13","1016004008");	//河北省
        put("22","1016004006");	//吉林省
        put("64","1016003009");	//宁夏回族自治区
        put("43","1016006002");	//湖南省
        put("36","1016005004");	//江西省
        put("12","1016004009");	//天津市
    }};






}
